昨天將bluetooth裝起來了,今天來嘗試安裝GPS
要準備的東西
1.香菇頭的Bluetooth接收器
2.GPS 接收器一個
首先打開gnome-terminal,在終端機畫面下輸入
hcitool scan
這個指令會顯示目前所偵測到的bluetooth裝置
Scanning ...
           aa:bb:cc:dd:ee:ff   RD BS1100 
再來編輯 rfcomm.conf
sudo /etc/bluetooth/rfcomm.conf
加上設定
rfcomm0 {
   bind yes;
   device aa:bb:cc:dd:ee:ff  ;
    channel 1;
    comment "Bluetooth GPS";
}
重新啟動bluetooth 服務
sudo service bluetooth restart
要連結的時候
sudo rfcomm release 0
sudo rfcomm connect 0
此時就會連線成功